import request from '@/utils/request'
// 获取城市列表数据
export const getCity = function (level) {
  return request.get('/area/city', { params: { level } })
}
// 获取热门城市
export const getHotCity = function () {
  return request.get('/area/hot')
}
// 获取子级城市列表
export const getArea = function (id) {
  return request.get('/area', { params: { id } })
}
